package org.example.myleet.p1438;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(1 == solution.longestSubarray(new int[]{8}, 3));
        Assert.isTrue(2 == solution.longestSubarray(new int[]{8,2,4,7}, 4));
        Assert.isTrue(4 == solution.longestSubarray(new int[]{10,1,2,4,7,2}, 5));
        Assert.isTrue(3 == solution.longestSubarray(new int[]{4,2,2,2,4,4,2,2}, 0));
    }
}
